package com.example.demo.sys.dept.service;

import com.example.demo.base.BaseService;
import com.example.demo.sys.dept.dao.SysDeptDao;
import com.example.demo.sys.dept.entity.SysDept;
import com.example.demo.sys.menu.dao.SysMenuDao;
import com.example.demo.sys.menu.entity.SysMenu;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author haocj
 * 用户service
 */
@Service
public class SysDeptService extends BaseService<SysDept,SysDeptDao> {

    @Resource
    private SysDeptDao deptDao;

    /**
     * 批量删除
     * @param ids
     */
    @Transactional(readOnly = false,rollbackFor = Exception.class)
    public void delete(String[] ids) {
        deptDao.delete(ids);
    }

}
